﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using Common;
using Model;

namespace AcceptServer.Service
{
    public class OperateCmdData
    {
        //    private static TaxiGpsHistoryInfo _taxiGpsHistoryInfoBuffer = new TaxiGpsHistoryInfo();


        //    private static readonly Dictionary<int, byte[]> _imageDataBuffer = new Dictionary<int, byte[]>();

        public byte[] AnalysisMessageId(byte[] realData, IPAddress clientIp)
        {
            ushort messageId = OperateAgreement.GetMessageIdInMessageHead(realData);
           // Console.WriteLine(messageId);
            byte[] sendData = new byte[1];
           
            PhoneUserProtocol phoneUserProtocol = new PhoneUserProtocol();
            switch (messageId)
            {
                case ConstParameters.CmdPhoneUserRegister:
                    sendData = phoneUserProtocol.PhoneUserRegister(realData, clientIp);
                    break;

            }
            return sendData;
        }




    }
}
